Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit a6eac0d7ced8b26c855dfd9bb0e88e17ac19a4f7


Parents : f9259b8
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-05-18T16:18:13+02:00

Configure python for unbuffered stdout in Docker images

Changes

2 files changed, 19 insertions(+), 11 deletions(-)

M README.md +18 -11

Diff

diff --git a/Dockerfile b/Dockerfile
index ea3e1b3..0944827 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,6 +16,7 @@ FROM python:3.11-rc-alpine3.14
LABEL org.opencontainers.image.documentation="https://github.com/markqvist/NomadNet#nomad-network-daemon-with-docker"
ENV PATH="/opt/venv/bin:$PATH"
+ENV PYTHONUNBUFFERED="yes"
COPY --from=build /opt/venv /opt/venv
VOLUME /root/.reticulum

diff --git a/README.md b/README.md
index fac9ed5..474ec42 100755
--- a/README.md
+++ b/README.md
@@ -59,25 +59,32 @@ You can install Nomad Network on Android using Termux, but there's a few more co
For a native Android application with a graphical user interface, have a look at [Sideband](https://unsigned.io/sideband).
-### Nomad Network Daemon with Docker
-
-Nomad Network is automatically published as a docker image on Github Packages. Image tags are one of either `master` (for the latest release) or the version number (eg `0.1.7`) for the specified version number (as tagged in this git repo).
+### Docker Images
+Nomad Network is automatically published as a docker image on Github Packages. Image tags are one of either `master` (for the very latest commit) or the version number (eg `0.1.8`) for a specific release.
```sh
$ docker pull ghcr.io/markqvist/nomadnet:master
# Run nomadnet interactively without installing it (with default config)
-$ docker run -it ghcr.io/markqvist/nomadnet:master
+$ docker run -it ghcr.io/markqvist/nomadnet:master --textui
+
+# Run nomadnet as a daemon, using config stored on the host machine in specified
+# directories, and connect the containers network to the host network (which will
+# allow the default AutoInterface to automatically peer with other discovered
+# Reticulum instances).
+$ docker run -d \
+ -v /local/path/nomadnetconfigdir/:/root/.nomadnetwork/ \
+ -v /local/path/reticulumconfigdir/:/root/.reticulum/ \
+ --network host
+ ghcr.io/markqvist/nomadnet:master
-# Run nomadnet as a daemon, using config stored on the host machine in specific
-# directories, and allowing access to specific numbered ports openned by nomadnet
-# on the host machine on the same port numbers.
+# You can also keep the network of the container isolated from the host, but you
+# will need to manually configure one or more Reticulum interfaces to reach other
+# nodes in a network, by editing the Reticulum configuration file.
$ docker run -d \
- -v /local/path/nomadnetconfig/:/root/.nomadnetwork/ \
- -v /local/path/reticulumconfig/:/root/.reticulum/ \
- -p 37428:37428 \
- -p 37429:37429 \
+ -v /local/path/nomadnetconfigdir/:/root/.nomadnetwork/ \
+ -v /local/path/reticulumconfigdir/:/root/.reticulum/ \
ghcr.io/markqvist/nomadnet:master
```


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────